package org.apache.jsp.common;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import manager.category.*;

public final class LeftMenu_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=euc-kr");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	CategoryListBean clb = new CategoryListBean();
	clb.getCate1();
	ArrayList cate1List = clb.getDataList();
	
	clb.getCate2();
	ArrayList cate2List = clb.getDataList();





      out.write("\r\n");
      out.write("<SCRIPT language=\"javascript\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function Layer_overload(LayerName,Status)\r\n");
      out.write("{\r\n");
      out.write("    if (navigator.appName == 'Netscape')\r\n");
      out.write("\t{\r\n");
      out.write("\t\tLayerN = document.getElementById(LayerName).style;\r\n");
      out.write("\t\tif (Status == 'show') LayerN.visibility = 'visible';\r\n");
      out.write("\t\tif (Status == 'hide') LayerN.visibility = 'hidden';\r\n");
      out.write("    }\r\n");
      out.write("\telse\r\n");
      out.write("\t{\r\n");
      out.write("\t\tLayerN = document.all[LayerName].style;\r\n");
      out.write("\t\tif (Status == 'show') LayerN.visibility = 'visible';\r\n");
      out.write("\t\tif (Status == 'hide') LayerN.visibility = 'hidden';\r\n");
      out.write("    }\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function goList(goods_id)\r\n");
      out.write("{\r\n");
      out.write(" document.location.href=\"/servlet/service.TotalSearchServlet?func=search_004&word=\"+goods_id;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("<!-- 카테고리메뉴 시작 -->\r\n");

	for(int i=0; i<cate1List.size(); i++)
	{
		Hashtable cate1Table = (Hashtable)cate1List.get(i);
		String seq = (String)cate1Table.get("SEQ");
		String cate1Name = (String)cate1Table.get("NAME");
		String useYn = (String)cate1Table.get("USEYN");
		
		if(useYn.equals("Y"))
		{

      out.write("\t\t\r\n");
      out.write("\t<TABLE width='150' class=table_menu>\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t\t <TD height=20 width=150  onmouseover=javascript:Layer_overload('sub_id_");
      out.print(i );
      out.write("','show') onmouseout=javascript:Layer_overload('sub_id_");
      out.print(i );
      out.write("','hide')>\r\n");
      out.write("\t\t   <LI><A href=javascript:goList('");
      out.print(seq);
      out.write("^'); >");
      out.print(cate1Name );
      out.write("</A>\r\n");
      out.write("\t\t </TD>\t \r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t<TD height=20 width=0 style='position:relative'>\r\n");
      out.write("\t\t\t <DIV id=sub_id_");
      out.print(i );
      out.write(" class=submenu  style='position:absolute; left:-60px; top:0px; visibility:hidden' onmouseover=javascript:Layer_overload('sub_id_");
      out.print(i );
      out.write("','show') onmouseout=javascript:Layer_overload('sub_id_");
      out.print(i );
      out.write("','hide')>\r\n");
      out.write("\t\t\t   <TABLE cellpadding=0 cellspacing=0 border=0 width=150 style='border:1px solid #B4B4FD' bgcolor='#FFFFFF'>\r\n");

		

				
				for(int j=0; j<cate2List.size(); j++)
				{
					Hashtable cate2Table = (Hashtable)cate2List.get(j);
					String cate2Name = (String)cate2Table.get("NAME");
					String group_seq = (String)cate2Table.get("GROUP_SEQ");	
					String cateSEQ = (String)cate2Table.get("SEQ");	
					if(seq.equals(group_seq))
					{


      out.write("\t\t\r\n");
      out.write("\t\t\t \t <TR>\r\n");
      out.write("\t\t\t\t \t <TD height=20 width=150>\r\n");
      out.write("\t\t\t\t       <A href=javascript:goList('");
      out.print(seq );
      out.write('^');
      out.print(cateSEQ );
      out.write("');>");
      out.print(cate2Name );
      out.write("</a> \r\n");
      out.write("\t\t\t\t     </TD>\r\n");
      out.write("\t\t\t     </TR> \r\n");

					}
				}
		

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t    </TABLE>\r\n");
      out.write("\t\t\t  </DIV>    \r\n");
      out.write("\t\t  </TD>  \r\n");
      out.write("\t    \r\n");
      out.write("\t </TR>\r\n");
      out.write("</TABLE>\r\n");

		}
}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!-- 카테고리메뉴 끝 -->\r\n");
      out.write("\r\n");
      out.write("<TABLE width=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("  <TR> \r\n");
      out.write("    <TD> \r\n");
      out.write("      <TABLE width=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"/images/Left/left_r10_c1.png\">\r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD> \r\n");
      out.write("          </TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("\r\n");
      out.write("<!-- community list 시작-->\r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD><img src=\"/images/Left/left_r8_c1.png\" width=\"148\" height=\"29\"></TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD height=\"3\"></TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD> \r\n");
      out.write("            <TABLE width=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\r\n");
      out.write("            \r\n");
      out.write("              <TR> \r\n");
      out.write("                <TD width=\"14\"><img src=\"/images/Left/blank.png\" width=\"3\" height=\"2\"><img src=\"/images/Left/dot_10x9_color.png\" width=\"10\" height=\"9\"></TD>\r\n");
      out.write("                <TD width=\"122\"><a href=\"community.asp?board_code=2\"><font color=\"#6F81A8\">▣질문/답변 게시판</font></a></TD>\r\n");
      out.write("              </TR>\r\n");
      out.write("            \r\n");
      out.write("              <TR> \r\n");
      out.write("                <TD width=\"14\"><IMG src=\"/images/Left/blank.png\" width=\"3\" height=\"2\"><IMG src=\"/images/Left/dot_10x9_color.png\" width=\"10\" height=\"9\"></TD>\r\n");
      out.write("                <TD width=\"122\"><a href=\"community.asp?board_code=20\"><font color=\"#6F81A8\">▣입금확인/발송확인</font></a></TD>\r\n");
      out.write("              </TR>\r\n");
      out.write("            \r\n");
      out.write("              <TR> \r\n");
      out.write("                <TD width=\"14\"><IMG src=\"/images/Left/blank.png\" width=\"3\" height=\"2\"><IMG src=\"/images/Left/dot_10x9_color.png\" width=\"10\" height=\"9\"></TD>\r\n");
      out.write("                <TD width=\"122\"><a href=\"community.asp?board_code=23\"><font color=\"#6F81A8\">▣매장 중고게임목록 ★(현재시간)★</font></a></TD>\r\n");
      out.write("              </TR>\r\n");
      out.write("            \r\n");
      out.write("            </TABLE>\r\n");
      out.write("          </TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD height=\"4\"></TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD><IMG src=\"/images/Left/left_r11_c1.png\" width=\"150\" height=\"1\" border=\"0\"></TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("\r\n");
      out.write("<!-- community list 끝 -->\r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD><a href=\"interbanking.asp\"><IMG src=\"/images/Left/left_r12_c1.png\" width=\"148\" height=\"47\" border=\"0\"></a></TD>\r\n");
      out.write("        </TR>\r\n");
      out.write(" \r\n");
      out.write("        <TR> \r\n");
      out.write("          <TD><IMG src=\"/images/Left/left_r13_c1.png\" width=\"150\" height=\"29\" border=\"0\" OnClick=\"window.external.AddFavorite('http://localhost/','자바3조 게임쇼핑몰 ㅋㅋ')\" style=\"cursor:hand;\"></TD>\r\n");
      out.write("        </TR>\r\n");
      out.write(" \r\n");
      out.write("      </TABLE>\r\n");
      out.write("    </TD>\r\n");
      out.write("  </TR>\r\n");
      out.write("<TR> \r\n");
      out.write("  <TD> \r\n");
      out.write("    <TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\">\r\n");
      out.write("      <TR> \r\n");
      out.write("        <TD> \r\n");
      out.write("          <div align=\"center\"><a href=\"#\" target='_self'><IMG src=\"/images/Left/hoki(1).jpg\" width='150' border=\"0\"></a></div> \r\n");
      out.write("        </TD>\r\n");
      out.write("      </TR>\r\n");
      out.write("    </TABLE>\r\n");
      out.write("  </TD>\r\n");
      out.write("</TR>\r\n");
      out.write("<TR> \r\n");
      out.write("  <TD> \r\n");
      out.write("    <TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\">\r\n");
      out.write("      <TR> \r\n");
      out.write("        <TD> \r\n");
      out.write("          <div align=\"center\"><a href=\"http://www.ilogen.com//\" target='_blank'><IMG src=\"/images/Left/1(29).jpg\" width='150' border=\"0\"></a></div> \r\n");
      out.write("        </TD>\r\n");
      out.write("      </TR>\r\n");
      out.write("    </TABLE>\r\n");
      out.write("  </TD>\r\n");
      out.write("</TR>\r\n");
      out.write("</TABLE>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
